package com.candy.candycommon.utils;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2024/5/8 15:08
 * @Description web用户工具
 */
public class WebUtil {

    private static InheritableThreadLocal<Object> userSession = new InheritableThreadLocal<>();

    public static void clear() {
        userSession.remove();
    }

    public static void add(Object object) {
        userSession.set(object);
    }

    public static Object get() {
        return userSession.get();
    }

}
